#!/usr/bin/env python
#coding=utf-8

#main method
from simulateDatabase import Database
import excute

if __name__ == '__main__':
	"""
	###############################################################################
	#simulate database
	print "database initiating..."
	database = Database.Connect()
	###############################################################################
	##pause code##
	#pause = raw_input("pause")
	"""
	excute.importData()
	while 1:
		inputData = raw_input("Please input the caption of fig that you want to extract the keyword(Input \"end\" to quit)\n")
		ontologies = raw_input("Please input the ontologies\n")
		if inputData == "end":
			break
		else:
			result = excute.mainMethod(inputData, ontologies)
			print result


#end